<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.6.3.min.js"></script>
		<script>
			$(function(){
				$("#b1").click(function(){
					$("input[name=wd]").val("皮鞋");
					//$(":submit").trigger("click");
					$(":submit").triggerHandler("click");
				});
			})
		</script>
	</head>
	<body>
		<form action="https://www.baidu.com/s">
			<input name="wd" />
			<input type="submit" />
		</form>
		<button type="button" id="b1">提交</button>
	</body>
</html>